//
//  ViewController.m
//  sinawb
//
//  Created by ibokan on 14-11-12.
//  Copyright (c) 2014年 ibokan. All rights reserved.
//

#import "ViewController.h"
#import "WeiboSDK.h"


@interface ViewController ()
- (IBAction)buttonPressed:(id)sender;

@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
   
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark  按钮响应事件
- (IBAction)buttonPressed:(id)sender {
    WBAuthorizeRequest *request = [WBAuthorizeRequest request];
    request.redirectURI = kRedirectURL;
    request.scope = @"all";
    [WeiboSDK sendRequest:request];
}






















@end
